Robust String Matching in O ( √
نویسنده
چکیده
Finding a match of an M item pattern against an N item text is a common computing task, useful in string matching and image matching. The best classical (i.e., non-quantum) string matching algorithms, which are Θ(N +M) time and query complexity, are improved in many cases in this paper using Grover’s quantum searching algorithm. Specifically, given quantum oracles that return the jth symbol in the text or pattern in constant time, we demonstrate a quantum string matching algorithm which returns a pattern match if it exists with query complexity O( √ N +M) and time complexity O( √ N logN + M log(MN) ). Variations of this algorithm allow wildcard matches, can return the number of matches, can return the nearest match in case of no exact matches, as well as the first or last such match, each with a slight change in complexity. We are also better than the best quantum string matching algorithms in many cases.
منابع مشابه
Robust String Matching in O ( √ N + M ) Quantum Queries Chris
Finding a match of an M item pattern against an N item text is a common computing task, useful in string matching and image matching. The best classical (i.e., non-quantum) string matching algorithms, which are Θ(N +M) time and query complexity, are improved in many cases in this paper using Grover’s quantum searching algorithm. Specifically, given quantum oracles that return the j symbol in th...
متن کاملRestricted Transposition Invariant Approximate String Matching Under Edit Distance
Let A and B be strings with lengths m and n, respectively, over a finite integer alphabet. Two classic string mathing problems are computing the edit distance between A and B, and searching for approximate occurrences of A inside B. We consider the classic Levenshtein distance, but the discussion is applicable also to indel distance. A relatively new variant [8] of string matching, motivated in...
متن کاملString Matching using Inverted Lists
This paper proposes a new solution to string matching problem. This solution constructs an inverted list representing a string pattern to be searched for. It then uses a new algorithm to process an input string in a single pass. The preprocessing phase takes 1) time complexity O(m) 2) space complexity O(1) where m is the length of pattern. The searching phase time complexity takes 1) O(m+α ) in...
متن کاملOptimal Parallel algorithm for String Matching on Mesh Network Structure
In this paper we consider the problem of string matching algorithm based on a two-dimensional mesh. This has applications such as string databases, cellular automata and computational biology. The main use of this method is to reduce the time spent on comparisons in string matching by using mesh connected network which achieves a constant time for mismatch a text string and we obtained O(¥. -ti...
متن کاملApproximate String Matching with Don't Care Characters
This paper presents an O( p kmnpolylog(m)) time algorithm for approximate string matching (k-di erences problem), in which don't care characters may appear both in a pattern string and in a text string.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003